finding the length of an unknown leg